-- GENERATED SPELL FOR [Tormented Soul] --


function spell0_20512(pUnit, Event) --@Soulbind,n/a--
pUnit:FullCastSpellOnTarget(36153,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20512', 2000, 1)
end

function Sorts_20512(pUnit, Event)
local choix_sorts_20512 = math.random(0, 0)
if choix_sorts_20512 == 0 then
pUnit:RegisterEvent('spell0_20512', 1, 1)
end
end

function mob20512_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20512', math.random(1500, 3000), 1)
end

function mob20512_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20512_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20512_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20512, 1, 'mob20512_Action')
RegisterUnitEvent(20512, 2, 'mob20512_Leave')
RegisterUnitEvent(20512, 3, 'mob20512_Kill')
RegisterUnitEvent(20512, 4, 'mob20512_Die')
